package com.example.demo.service.impl;

import com.example.demo.mapper.UserMapper;
import com.example.demo.pojo.Result;
import com.example.demo.pojo.User;
import com.example.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 作者：邓利
 * 时间：2024-06-03
 **/
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;


    @Override
    public Result login(User user) {
        return null;
    }

    @Override
    public User getUserByNameAndPassword(String username, String password) {
        return userMapper.getUserByNameAndPassword(username, password);
    }

}
